<form class="form-horizontal" method="post">
	<input type="hidden" name="action" value="new_member" />
	
	<div class="control-group">
		<label class="control-label" for="id">아이디</label>
		<div class="controls"><input type="text" name="id" id="id" required placeholder="아이디" autofocus /></div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="email">이메일</label>
		<div class="controls"><input type="text" name="email" id="email" required placeholder="이메일" /></div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="nick">이름</label>
		<div class="controls"><input type="text" name="nick" id="nick" required placeholder="이름" /></div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="password">비밀번호</label>
		<div class="controls"><input type="password" name="password" id="password" required placeholder="비밀번호" /></div>
	</div>
<?php if ($use_jumin) : ?>
	<div class="control-group">
		<label class="control-label" for="birth">주민번호</label>
		<div class="controls">
			<input type="text" name="birth" id="birth" required placeholder="901111" style="width:60px;" /> -
			<input type="password" name="jumin2" placeholder="1000000" style="width:70px;" /></div>
	</div>
<?php endif; ?>
<?php if ($use_phone) : ?>
	<div class="control-group">
		<label class="control-label" for="phone0">연락처</label>
		<div class="controls">
			<input type="text" name="phone0" id="phone0" required placeholder="010" style="width:30px;" /> -
			<input type="text" name="phone1" required placeholder="1111" style="width:40px;" /> -
			<input type="text" name="phone2" required placeholder="2222" style="width:40px;" />
		</div>
	</div>
<?php endif; ?>

	<div class="control-group">
		<label class="control-label">그룹</label>
		<div class="controls">
<?php foreach($grouplist as $k => $v): ?>
			<label class="checkbox inline">
				<input name="groups[]" value="<?php echo $v['idx']?>" type="checkbox" /> <?php echo $v['name']?>
			</label>
			
<?php endforeach;?>
		</div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="contents">회원설명</label>
		<div class="controls"><textarea type="password" name="contents" id="contents" class="span6" style="height:120px;"></textarea></div>
	</div>
	
	<div class="control-group">
		<div class="controls">
			<button type="submit" name="submit" id="submit" class="btn">회원추가</button>
		</div>
	</div>
</form>